package com.sun.service.impl;

import com.sun.dao.AdminMapper;
import com.sun.pojo.Admin;
import com.sun.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 烛龙神
 * @Description TODO
 * @date 2021-04-11 15:55
 */
@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public void AdminSave(Admin admin) {
        adminMapper.AdminSave(admin);
    }

    @Override
    public Admin AdminLogin(String name, String password) {
        return adminMapper.AdminLogin(name,password);
    }
}
